home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
keyb
/
stfkey40.zip
/
STUFFTIM.KEY
< prev
next >
Wrap
Text File
|
1992-11-01
|
2KB
|
43 lines
;*** Stufftim.key - a test for Stuffkey ver. 3.30, by Juergen Geist. 7Oct92
; to use this, enter:
; stuffkey /f:stufftim.key
;
+0 13
'type con' 13 13 13
'Time delay/midnight wrap test for Stuffkey V. 3.30, by J. Geist - 7Oct92 '27
'Loads 2 more copies. 2nd sends 8 CRs @1/2 sec., 3rd waits till 12:07a.'27
'Warning! This will mess up your Dos time; you will need to reset it! '27
'Without the quotes, type "ok!!" to run the test, or "/r" to abort. '27
'You have 30 seconds to abort, else test will run '27 13
{^c} +0
;** Use Prompt command to check for "ok!", timeout in 30 secs.
; check 4 chars to left of cursor, same line, with a slop factor of 2
; supply "stuffkey " so user can add "/r" to remove!
+0 13 +0 'stuffkey '
~30 {Prompt}4,0,2,"ok!"
{Esc} {Enter} +.3 ; can use {Keyname} or char codes, i.e., 27 13
'set old_prompt=%prompt%' 13 +0
'set prompt=$.' 13 +0
13 'time' 13 +0 +.3
'23:59:56' 13 +0 +.3 ; set time to 4 seconds before midnight.
; Stuff CR delayed by 9 timer ticks, or 1/2 second.
'Loading 2nd & 3rd copies of Stuffkey now...' 3 13 +0 +.8
'stuffkey /s02 +2 13 +.9 13 +.9 13 +.9 13 +.9 13 +.9 13 +.9 13 +.9 13 +.9 13' 13
+0 +.6
'stuffkey /s03 =7 +0 13 "Stuffkey 3rd copy - at 12:07am." 3 13' 13
+0 +.3 'set prompt=$ Stfky tst: $t$g' 13 +0 +.3
+12 +0 +1 'Unloading 3rd & 2nd copies, and restoring prompt now...' 3 13 +0 +1
+0 'set prompt=$.' 13
+0 +1 'stuffkey /s03 /r' 13
+0 +1 'stuffkey /s02 /r' 13
+0 'set prompt=%old_prompt%' 13
+0 'set old_prompt=' 13
+0 'type con' 13 13
+0 'Stuffkey test is done. Remeber to reset your Dos time. ' 27 13 13 3
;** remove original copy of stuffkey.
+0 'stuffkey /r' 13